export type Resource = string;
export type Action =
  | 'insert'
  | 'delete'
  | 'update'
  | 'select'
  | 'import'
  | 'export';
export class Permission {
  id: string;
  resource: Resource;
  name: string;
  actions: Action[];
}
export type Permissions = Permission[];
export class Role {
  /**
   * ID
   */
  id: string;

  /**
   * 角色
   */
  role: string;

  /**
   * 是否超管
   */
  administrator: boolean;

  /**
   * 权限列表
   */
  permissions: Permissions;
}

export default Role;
